package com.cskaoyan.service;


import com.cskaoyan.mapper.DashboardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * \* Description:
 * \
 */
@Service
public class DashboardServiceIpl implements DashboardService {
    @Autowired
    DashboardMapper dashboardMapper;

    @Override
    public int goodsTotal() {
     int  goodsTotals =  dashboardMapper.goodsTotal();
        return goodsTotals;
    }

    @Override
    public int userTotal() {
        int  userTotals =  dashboardMapper.userTotal();
        return userTotals;
    }

    @Override
    public int productTotal() {
        int  productTotals =  dashboardMapper.productTotal();
        return productTotals;
    }

    @Override
    public int orderTotal() {
        int  orderTotals =  dashboardMapper.orderTotal();
        return orderTotals;
    }
}
